<?php

class Form_Template extends Zend_Form
{
    public function init()
    {
		$this->setMethod('post');
		$this->addPrefixPath('Lion_Form_Element', '../library/Form/Element/', 'element');	
	  
		
		 
	   $this->addElement('hidden', 'template_id', array(
            
            'filters'    => array('int'),
            'class'			 => 'hidden',
           
        ));
        
		  $this->addElement('text', 'module_name', array(
            'label'      => 'Module Name:',
            'required'   => true,
            'filters'    => array('StringTrim'),
            'class'			 => 'textbox',
            'validators' => array(
            	array('validator' => 'StringLength', 'options' => array(0, 100))
            )
        ));
        
		 
		
	   
												
        $this->addElement('text', 'template_title', array(
            'label'      => 'template Title:',
            'required'   => true,
            'filters'    => array('StringTrim'),
            'class'			 => 'textbox',
            'validators' => array(
            	array('validator' => 'StringLength', 'options' => array(0, 100))
            )
        ));
        
		
             
        $this ->addElement('formRTE', 'template_content',
    				array('label' =>'template content:', 
    					'required' =>true,    					
    					
    				)    				
		); 

		 										
        $this->addElement('checkbox', 'is_default', array(
            'label'      => 'Is Default:',
            'required'   => true,
            'filters'    => array('int'),
           
        ));
        
		  $this->addElement('submit', 'Add');
        
		
		
    }
}
